<div class="modal-header">
    <button aria-hidden="true" data-dismiss="modal" class="close" type="button"></button>
    <h3>选择地区</h3>
</div>
<div class="modal-body">
    <div class="well">
        <form class="form-horizontal ajaxRegionSearch">
            <span>地区名 <input type="text" name="region_name" value="<?php echo $this->input->get('region_name');?>" placeholder="地区名" class="m-wrap small"></span>
            <button class="btn green"><i class="icon-search"></i> 搜索</button>
        </form>
    </div>
    <?php if ($page_list->num_rows() > 0) :?>
        <table class="table table-striped table-bordered table-hover">
            <thead class="flip-content">
                <tr>
                    <th width="30">选择</th>
                    <th width="40">编号</th>
                    <th>城市名</th>
                    <th>地区全拼</th>
                    <th>地区简拼</th>
                    <th>类型</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($page_list->result() as $item) : ?>
                <tr>
                    <td><input type="radio" name="region_id" value="<?php echo $item->region_id?>"></td>
                    <td><?php echo $item->region_id;?></td>
                    <td><?php echo $item->region_name;?></td>
                    <td><?php echo $item->region_pinyin;?></td>
                    <td><?php echo $item->region_abbr;?></td>
                    <td>
                        <?php foreach (regionType() as $key=>$value){if ($key == $item->region_type){echo $value;}}?>
                    </td>
                </tr>
                <?php endforeach;?>
            </tbody>
        </table>
        <div class="dataTables_info">
            <span>当前第</span><span style="color: red"><?php echo $pg_now?></span>页 
            <span>共</span><span style="color: red"><?php echo $all_rows?></span>条数据
            <span>每页显示10条 </span>
            <?php echo $pg_list ?>
        </div>
    <?php else : ?>
        <div class="alert"><p>未找到数据。<p></div>
    <?php endif;?>
</div>
<div class="modal-footer"></div>